﻿@model IceTea.Domain.Models.Product
@using IceTea.Domain

@{
    ViewBag.Title = string.Format("Basic Information - {0}", Model.Name);
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section LeftNav{
    @Html.Partial("Product_LeftNav", IceTea.Infrastructure.ProductNav.BasicInfo)
}

@Scripts.Render("~/bundles/ajax")


        <a id="btnrefresh" class="btn btn-default btn-sm" data-toggle="tooltip" title="Refresh" 
            data-ajax="true" data-ajax-method="Get" data-ajax-mode="replace" 
            data-ajax-update="#basicinfocontainer" data-ajax-url="/Product/DisplayBasicInfo" 
            href="#">
            <span class="glyphicon glyphicon-refresh"></span></a>

        <a id="btnedit" class="btn btn-default btn-sm" data-toggle="tooltip" title="Edit" 
            data-ajax="true" data-ajax-method="Get" data-ajax-mode="replace" 
            data-ajax-update="#editbasicinfo" 
            data-ajax-url="/Product/EditBasicInfo?productId=@Model.Id" 
            href="#">
            <span class="glyphicon glyphicon-edit"></span></a>

        <!-- The product basic info content here -->
        <div class="col-md-12" id="basicinfocontainer">
            @Html.Partial("BasicInfo", Model)
        </div>

<!-- Edit Product modal dialog -->
<div class="modal fade" id="editbasicinfo" role="dialog">
</div>

